package OOP;

public class CountWord {
    public int countword(String res,String word){
        int count = 0;
        String[] strings = res.split(" ");
        for (int i = 0; i < strings.length; i++) {
            if(strings[i].equalsIgnoreCase(word)){
                count++;
            }
        }

        return count;
    }


}
